#! /usr/bin/python
# -*- coding: utf-8 -*-

def serializeJson(json):
    serialized = '{'
    for name in json:
        value = json[name]
        serialized += '"' + name + '":'
        if type(value) == type(1) or type(value) == type(1L):
            serialized += str(value)
        else:
            serialized += '"' + str(value) + '"'
        serialized += ','
    lenSerialized = len(serialized)
    if serialized[lenSerialized - 1] == ',':
        serialized = serialized[0:lenSerialized - 1]
    serialized += '}'
    return serialized
